package com.stylefeng.guns.core.util;

import java.math.BigDecimal;

/**
 * Created by lyz on 2018/1/23.
 */
public class CommonUtil {

    public  static BigDecimal convertToBidDecimal(Double value,int scale){
        BigDecimal bg = new BigDecimal(value).setScale(scale,BigDecimal.ROUND_UP);
        return bg;
    }
}
